<?PHP

// Config de Moodle, chemin à modifier en fonction du chemin d'installation de ce module
include('../../../config.php');
  
$SECURITE="OK";

include('../../includes/config/config.php');
include('../../includes/includes.php');

  //On verifie que la variable de la categorie parent est initialisé        
  if(isset($_POST['id']) AND isset($_POST['debut']) AND isset($_POST['fin'])){
    echo "<table><thead><th>Categories</th><th>Nb Cours</th></thead>";
    recherche_espace_ouvert_cat($_POST['id'], $_POST['debut'], $_POST['fin']);
    echo "</table>";
  }



?>